﻿/**************************************************************

项目名称 :ThinkWide数据访问基础库
版权所有 (c) 2010 ThinkWide
+-------------------------------------------------------------
项目: 


版本: 1


创建日期:2010-8-3


作者: 章称

+-------------------------------------------------------------
描述:z

更新:   2010-8-3

ToDo:

***************************************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;
using MF.Data.SupplyInterface;

namespace MF.Data.WCF
{
    // NOTE: If you change the interface name "IWCFService" here, you must also update the reference to "IWCFService" in App.config.
    [ServiceContract]
    public interface IWCFService
    {
        [OperationContract]
        DataSet GetDataSet(string sql);

        [OperationContract]
        int UpdataDataSet(DataSet dataSet);

        [OperationContract]
        MFDBResuleInfo ExecuteSQL(string sql, CommandType commandType, MFDataParameters dataParameters, int commandTimeOut);

        [OperationContract]
        MFDBResuleDataSetInfo ExecuteSQLDataSet(string sql, CommandType commandType, MFDataParameters dataParameters, int commandTimeOut);
        
        [OperationContract]
        MFWcfInformatiom GetServiceInformatiom();
    }

    [Serializable]
    [DataContract]
    public class MFWcfInformatiom
    {
        [DataMember]
        public string Version { get; set; }
        [DataMember]
        public string ServerType { get; set; }
        [DataMember]
        public DateTime ServerTime { get; set; }
        [DataMember]
        public string ServerState { get; set; }

    }

   
}
